﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Mvc._5Dev.SettlementExpenses.Models.ReportData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Employee) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Employee) %>
                <%: Html.ValidationMessageFor(model => model.Employee) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Position) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Position) %>
                <%: Html.ValidationMessageFor(model => model.Position) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DateInitial) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DateInitial, String.Format("{0:g}", Model.DateInitial)) %>
                <%: Html.ValidationMessageFor(model => model.DateInitial) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DateEnd) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DateEnd, String.Format("{0:g}", Model.DateEnd)) %>
                <%: Html.ValidationMessageFor(model => model.DateEnd) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DateExpense) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DateExpense, String.Format("{0:g}", Model.DateExpense)) %>
                <%: Html.ValidationMessageFor(model => model.DateExpense) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NumberVoucher) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumberVoucher) %>
                <%: Html.ValidationMessageFor(model => model.NumberVoucher) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Supplier) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Supplier) %>
                <%: Html.ValidationMessageFor(model => model.Supplier) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.CostCenter) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.CostCenter) %>
                <%: Html.ValidationMessageFor(model => model.CostCenter) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Concept) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Concept) %>
                <%: Html.ValidationMessageFor(model => model.Concept) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.MountConcept) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.MountConcept, String.Format("{0:F}", Model.MountConcept)) %>
                <%: Html.ValidationMessageFor(model => model.MountConcept) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

